package ex_7_synMoreObjectStaticOneLock;



public class Main {
    /**
     *
     *  类锁
     *
     */
    public static void main(String[] args) {
        Service service = new Service();
        ThreadA threadA = new ThreadA(service);
        threadA.setName("A");
        ThreadB threadB = new ThreadB(service);
        threadB.setName("B");
        threadA.start();
        threadB.start();
    }
}
